<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>标签管理</title>
    <hdjs/>
    <bootstrap/>
    <style type="text/css">
        /*修改按钮*/
       .table2 tr td{
            height: 35px;
        }
        input[type="text"]{
            background-color: #FFFFFF;
            border: 2px solid #DDDDDD;
            border-radius: 0;
            box-shadow: 2px 2px 2px #F0F0F0 inset !important;
            color: #555555;
            display: inline-block;
            font-size: 12px;
            line-height: 30px;
            margin: 0;
            padding: 0 6px;
            vertical-align: middle;
            height: 30px;
        }
        input[type="text"]:focus{
            background: none repeat scroll 0 0 #FFFBDE;
            border: 2px solid #51B4FF;
            box-shadow: none !important;
            outline: 1px solid #51B4FF;
        }
    </style>
    <js file="__CONTROLLER_VIEW__/js/js.js">
</head>
<body>
<div class="wrap">
    <table class="table2">
        <thead>
        <tr>
            <td width="30">id</td>
            <td>标签名</td>
            <td width="200">操作</td>
        </tr>
        </thead>
        <tbody>
            <foreach from="$data" value="$v">
                <tr>
                    <td width="30">{$v.tid}</td>
                    <td>
                        <span>{$v.tagname}</span>
                        <form action="{|U:'Tag/edit_tag'}" method="post" style="display:none">
                            <input type="hidden" name="tid" value="{$v.tid}"/>
                            <input type="text" name="tagname"  value="{$v.tagname}"/>
                        </form>
                    </td>

                    <td width="200">
                        <a href="javascript:;" class="btn btn-primary btn-xs edit-tag">编辑</a>
                        <a href="javascript:;" class="btn btn-success btn-xs submit-tag" style="display:none">保存</a>
                        <a href="javascript:;" class="btn btn-danger btn-xs" onclick="if(confirm('确定删除么？')) location.href='{|U:'Tag/del_tag',array('tid'=>$v['tid'])}'">删除</a>
                    </td>
                </tr>
            </foreach>
        </tbody>
    </table>
    <style type="text/css">
        .page_hdjob{
            text-align: center;
            margin-top: 10px;
        }
        .page_hdjob .close{
            float: none;
            font-size: 12px;
            color: black;
            opacity: 1;
            font-weight: 400;
        }
        .page_hdjob a{
            padding: 5px;
            border: 1px solid #ccc;
            margin-left: 3px;
        }
        .page_hdjob strong{
            margin-left: 3px;
            margin-right: 3px;
        }
    </style>
    <style type="text/css"></style>
    <div class="page_hdjob">
    {$page}   
    </div>
</div>

</body>
</html>


